{% extends "base.html" %}

{% block title %}@{{ owner_user.screen_name }}'s Followers{% endblock title %}

{% block head%}
<script src="/js/common.js"></script>
<script src="/js/user.js"></script>
{% if owner_user %}{% include "user-style.html" %}{% endif %}
{% endblock head %}

{% block main %}
{% include "user-profile.html" %}
{% include "user-nav.html" %}
<div id="UserList">
	<div id="Tlheading">@{{ owner_user.screen_name }}'s Followers</div>
	{% if error %}
		<ul class="users">
			<li class="nothing">{{ error }}</li>
		</ul>
	{% else %}
		<ul class="users">
		{% if followers %}
		{% for user in followers %}
			{% include "user.html" %}
		{% endfor %}
		{% else %}
			<li class="nothing">No followers.</li>
		{% endif %}
		</ul>
	{% endif %}
	<div id="pagination">{% if previous_cursor %}<a class="prev" href="{{ self.current }}?cursor={{ previous_cursor_str }}">previous page</a>{% endif %}  {% if next_cursor %}<a class="next" href="{{ self.current }}?cursor={{ next_cursor_str }}">next page</a>{% endif %}</div>
</div>
{% endblock main%}

{% block side %}
{% include "side.html" %}
{% endblock side %}